home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-05-16 | 2.1 KB | 67 lines |
- #/* Copyright (c) 1994 Burra Gopal, Udi Manber. All Rights Reserved. */
- # Makefile for the compress library -- agrep should be linked with it in case
- # it wants to search for patterns in a compressed file.
-
- # You might have to change these depending on your machine configuration.
- # AR and RABLIB are the library-archive programs. On Solaris, RANLIB is not
- # required (define it to true) and AR is in /usr/ccs/bin/ar (on our machine!).
- CC = gcc -traditional #cc
- AR = /usr/ccs/bin/ar #for Solaris
- RANLIB = true #for Solaris
-
- SHELL = /bin/sh
-
- # Define DIRENT to be 1 when you don't have <sys/dir.h> else define it to be 0.
- DIRENT = 1
-
- # Define UTIME to be 1 if you have the utime() routine on your system. Else define it to be 0.
- UTIME = 1
-
- # YOU DON'T HAVE TO CHANGE ANYTHING BELOW THIS LINE
-
- INDEX = ../index
- AGREP = ../agrep
- LIBDIR = ../lib
- BIN = ../bin
-
- all: lib tbuild cast uncast test
- cp tbuild $(BIN)/.
- cp cast $(BIN)/.
- cp uncast $(BIN)/.
-
- CFLAGS = -DDIRENT=$(DIRENT) -DUTIME=$(UTIME) -I$(INDEX) -I$(AGREP) -c -O #-g
-
- LIBOBJ = hash.o string.o misc.o quick.o cast.o uncast.o tsimpletest.o tmemlook.o tbuild.o
- LIB = $(LIBDIR)/libcast.a
-
- lib: $(LIBOBJ)
- $(AR) rcv $(LIB) $(LIBOBJ)
- $(RANLIB) $(LIB)
-
- test: hash.o string.o misc.o test.o quick.o tsimpletest.o tmemlook.o cast.o uncast.o
- $(CC) -o test hash.o string.o misc.o test.o quick.o tsimpletest.o tmemlook.o cast.o uncast.o
-
- tbuild: hash.o string.o misc.o tbuild.o main_tbuild.o defs.h
- $(CC) -o tbuild hash.o string.o misc.o tbuild.o main_tbuild.o
-
- cast: main_cast.o $(LIB)
- $(CC) -o cast main_cast.o $(LIBOBJ)
-
- uncast: main_uncast.o $(LIB)
- $(CC) -o uncast main_uncast.o $(LIBOBJ)
-
- hash.o: defs.h $(INDEX)/glimpse.h
- string.o: defs.h $(INDEX)/glimpse.h
- misc.o: defs.h $(INDEX)/glimpse.h
- quick.o: defs.h $(INDEX)/glimpse.h
- cast.o: defs.h $(INDEX)/glimpse.h
- uncast.o: defs.h $(INDEX)/glimpse.h
- main_cast.o: defs.h $(INDEX)/glimpse.h
- main_uncast.o: defs.h $(INDEX)/glimpse.h
- tsimpletest.o: defs.h $(INDEX)/glimpse.h
- tmemlook.o: defs.h $(INDEX)/glimpse.h
- test.o : test.c
-
- clean:
- rm -f *.o $(LIB) core test cast uncast tbuild a.out
-